package com.atguigu.gmall.list.client;

import com.atguigu.gmall.model.list.SearchParam;
import com.atguigu.gmall.model.list.SearchResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 李旭
 * @date 2021/10/13 15:28
 * @Description:
 */
@FeignClient(name = "service-list")
public interface ListFeignClient {

    //商品热度评分  （加分接口）
    @PutMapping("/api/list/inner/incrHotScore/{skuId}/{score}")
    public void incrHotScore(@PathVariable Long skuId, @PathVariable Integer score);

    //开始搜索
    @PostMapping("/api/list/inner/search")
    public SearchResponseVo search(@RequestBody SearchParam searchParam);
}
